package com.lanou3g.ptp.taskrole.mapper;

import com.lanou3g.ptp.entity.TaskRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface TaskRoleMapper {

    List<TaskRole> findAll();

    TaskRole findById(Long id);

    void inserts (ArrayList<TaskRole> taskRoles);

    void insert(TaskRole taskRole);

    void update(@Param("id") Long id, @Param("t") TaskRole taskRole);

    void delete(Long id);

    void deletes(Long[] ids);

    void deleteByTaskId(Long taskId);

    TaskRole findByRoleId(Long roleId);

    ArrayList<TaskRole> findByTaskId(Long taskId);

    void deletesByTaskIds(Long[] ids);



}
